package com.linkdood.app.service;


import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.linkdood.app.domain.CustomRole;
import org.springframework.data.domain.Pageable;

import java.util.Optional;


/**
 * 自定义角色
 *
 * @author hycao
 */

public interface CustomRoleService extends IService<CustomRole> {
    /**
     * 添加角色及权限到角色权限表
     *
     * @param customRole
     */
    void saveRoleMenu(CustomRole customRole);

    Page<CustomRole> pageCustomRoleByRoleNames(String roleName,  Pageable pageable);

    Optional<CustomRole> getCustomRoleByName(String name);
}
